<div class="header">
    <back-Btn></back-Btn>
    工作报告
</div>
<div class="report-menu flex tc">
    <div class="icon_edit" ng-repeat="item in taskreport.menulist" ng-class="item.className" ng-click="taskreport.switchmenu(item.target)">{{item.value}}</div>
</div>
<div class="report-sub-menu tc">
    <label class="report-daily">
        <input type="radio" value="1" class="radio" name="report-type" ng-model="taskreport.reporttype" ng-change="taskreport.switchreport()">日报
    </label>
    <label class="report-weekly">
        <input type="radio" value="2" class="radio" name="report-type" ng-model="taskreport.reporttype" ng-change="taskreport.switchreport()">周报
    </label>
</div>
<div class="container reportpage" style="top:150px">
    <div class="report-list lh30" infinite-scroll='taskreport.reportList.nextPage()' infinite-scroll-disabled='taskreport.reportList.busy' infinite-scroll-distance='0' infinite-scroll-container='".reportpage"'>
        <div class="report-item" ng-repeat="item in taskreport.reportList.items" ng-click="taskreport.goDetail(item)">
            <div class="report-item-header flex pd20">
                <div class="report-item-icon w25 tc">
                    <div class="user-pic">
                        <div class="item-avtar tc lh50">{{item.userName| username}}</div>
                    </div>
                </div>
                <div class="report-item-info w75">
                    <p>{{item.userName}}</p>
                    <!-- 周报与日报显示不同 -->
                    <p ng-if="taskreport.reporttype==1">日报({{item.logDate|dateFmt:'MM月dd日'}})</p>
                    <p ng-if="taskreport.reporttype==2">周报(第{{item.weekOfYear}}周周报)</p>
                </div>
            </div>
            <div class="report-item-content lh20 pd20">
                <!-- 周报与日报显示不同 -->
                {{item.content||item.content1}}
            </div>
            <div class="report-item-footer flex tc mt10">
                <div class="report-comment w50"><img src="images/icon_comment.png">评论({{item.reviewCount}})</div>
                <div class="report-hasseen w50"><img src="images/icon_eye2.png">{{item.hasSeenCount}}</div>
            </div>
        </div>
        <div class="no-data tc" ng-show="taskreport.reportList.items.length<1">
            没有数据
        </div>
    </div>
</div>
